import pyautogui
import time

def click_screen():
    while True:
        # 模拟点击屏幕中心
        screenWidth, screenHeight = pyautogui.size()
        pyautogui.click(screenWidth / 2, screenHeight / 2)
        print("Clicked at the center of the screen.")

        # 等待10秒
        time.sleep(10)

if __name__ == "__main__":
    click_screen()
